<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/10
 * Time: 1:30
 */

namespace App\Model;

use \think\Model;

class RoomTicketJournal extends Model
{
    public function getBalanceByAccountID($account_id){
        $balance = $this->where(['account_id'=>$account_id, 'is_delete'=>0])->column("balance");
        return $balance[0];
    }
}